home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / othergnu / gnuplot.zoo / demo / world.demo < prev   
Text File  |  1992-03-02  |  1KB  |  58 lines

  1. set title "Gnuplot Correspondences"
  2. set nokey
  3. set noborder
  4. set noyzeroaxis
  5. set noxtics
  6. set noytics
  7. #
  8. # plot world map and correspondent locations as a +
  9. plot 'world.dat' with lines 3 4, 'world.cor' with points 1 2
  10. set title ""
  11. set key
  12. set border
  13. set yzeroaxis
  14. set xtics
  15. set ytics
  16. pause -1 "Hit return to continue"
  17. #
  18. # plot a '3D version using spherical coordinate system' of the world.
  19. set angles degrees
  20. set title "3D version using spherical coordinate system"
  21. set view 70,40,,2.0
  22. set mapping spherical
  23. set parametric
  24. set samples 32
  25. set isosamples 9
  26. set urange [-pi/2:pi/2]
  27. set vrange [0:2*pi]
  28. splot 'world.dat' with lines 3 4, 'world.cor' with points 1 2, cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines 5 6
  29. pause -1 "Hit return to continue"
  30. #
  31. # plot a '3D version using cylindrical coordinate system' of the world.
  32. set title "3D version using cylindrical coordinate system"
  33. set view 70,40,,2.0
  34. set mapping cylindrical
  35. set parametric
  36. set samples 32
  37. set isosamples 9
  38. set urange [-pi:pi]
  39. set vrange [-90:90]
  40. splot 'world.dat' with lines 3 4, 'world.cor' with points 1 2, cos(u),sin(u),v with lines 5 6
  41. pause -1 "Hit return to continue"
  42.  
  43.  
  44. #
  45. # Clean up:
  46. #
  47. set noparametric
  48. set mapping cartesian
  49. set angles radians
  50. set samples 100
  51. set isosamples 10
  52. set view 60,30,1,1
  53. set xrange [-10:10]
  54. set yrange [-10:10]
  55. set zrange [-10:10]
  56. set auto
  57. set title "" 0,0
  58.